package com.pp.demo.common.response;

import com.pp.demo.common.constant.ErrorCode;

public enum ResultCode implements ErrorCode {

    SUCCESS("0", "操作成功"),
    ERROR("-1", "操作失败"),
    ;

    private final String code;
    private final String message;

    ResultCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
